package com.simtop.picture.service;

import com.github.pagehelper.PageInfo;
import com.simtop.picture.common.ServerResponse;
import com.simtop.picture.pojo.*;
import org.springframework.context.annotation.Primary;

import java.util.List;

public interface PictureService {
    ServerResponse<List<ExplorationCenter>> getCenter();

    ServerResponse<List<PrimaryTitle>> getPrimaryTitle(int centerId);

    ServerResponse<List<SecondaryTitle>> getSecondTitle(int primaryId);

    ServerResponse addPrimaryTitle(Integer explorationCenterId, String primaryTitleName);

    ServerResponse addSecondTitle(Integer primaryTitleId, String secondaryTitleName);

    ServerResponse deletePrimaryTitle(Integer primaryTitleId);

    ServerResponse deleteSecondTitle(Integer secondaryTitleId);


    int addPicture(PicturePath picturePath);

    ServerResponse<PageInfo> getImage(Integer pageNum, Integer pageSize, Integer secondaryTitleId);

    ServerResponse<String> updatePrimaryTitle(Integer primaryTitleId, String primaryTitleName);

    ServerResponse<String> updateSecondTitle(Integer secondaryTitleId, String secondaryTitleName);

    ServerResponse<PageInfo> getPicture(Integer pageNum, Integer pageSize, Integer explorationCenterId);

    ServerResponse<String> deletePicturePath(Integer picturePathId);

    int compilePicturePath(PicturePath picturePath);

    ServerResponse<PageInfo> filterPicture(Integer pageNum, Integer pageSize, Integer secondId);

    SecondaryTitle getSecondaryTitleName(Integer secondaryTitleId);

    List<SecondaryTitle> create();

    ServerResponse getPictureDetail(Integer picturePathId);

    List<U3dPath> getU3dPath();

    void deleteUser();

    long checkPictureName(String pictureName,Integer picturePathId);

    long checkAddPictureName(String pictureName,String imagesPath);

    long checkImagePath(String imagesPath, Integer picturePathId);

//    ServerResponse<PageInfo> filterPicture(Integer pageNum, Integer pageSize, Integer secondId, Integer primaryTitleId);
}
